import init, { generate_alpha_png } from './pkg/wasm_canvas.js';

onmessage = async ({data:{bitmap}}) => {
    await init();
    const out = await generate_alpha_png(bitmap);
    // console.log('work : ',out);
    postMessage(out);
}